package com.icetech.eom.controller;


import javax.servlet.http.HttpServletResponse;

/**
 * base controller
 * @author wangzw
 */
public class BaseController {

    /**
     * 将文件写回浏览器
     */
    protected void setFileResponse(HttpServletResponse response,String fileName){
        response.setContentType("application/octet-stream");
        response.setHeader("Content-disposition", "attachment;filename="+fileName);
    }

}
